#ifndef __MY_I2C_H
#define __MY_I2C_H

#include "driver/i2c.h"
#include "driver/gpio.h"

#define Master_PORT    I2C_NUM_0 //主机端口设置
#define Master_SDA_NUM 18        //主机SDA引脚设置
#define Master_SCL_NUM 19        //主机SCL引脚设置
#define Master_SPEED   100000     //主机模式时钟频率设置,不高于1MHz
//#define Device_Address 0x28

esp_err_t MY_I2C_Master_Init(void);
//esp_err_t esp32_i2c_read_bytes(uint8_t size, uint8_t* data);
//esp_err_t esp32_i2c_write_bytes(uint8_t size, uint8_t* data);

#endif